package com.ddstation.prescription_violate.service;

import java.util.List;

import com.ddstation.common.model.InvsCheckCommonSchParModel;
import com.ddstation.crm.outpatient.model.OutpatientModel;
import com.ddstation.crud.entity.DtInvsViolationManageEntity;
import com.ddstation.home_page.model.HpCommonParModel;
import com.ddstation.prescription_violate.model.InstitutionViolateResModel;
import com.ddstation.prescription_violate.model.RealTimeMonitorModel;
import com.ddstation.prescription_violate.model.ViolateDetailParaModel;
import com.ddstation.prescription_violate.model.ViolateDetailResModel;
import com.ddstation.statement.model.IllegalTypeModel;

/**
 *  service
 * 
 * @author zhengxiaobin
 * @date 2019年8月27日
 */
public interface PrescriptionViolateService {
	// 实时监控记录
	public	List<RealTimeMonitorModel> searchRealTimeMonitor(HpCommonParModel _p);
	
	// 机构别违规数据汇总
	public List<InstitutionViolateResModel> searchViolateCntGroupbyInstitutionId(InvsCheckCommonSchParModel _p);
	
	// 指定机构处方违规明细查询
	public List<ViolateDetailResModel> searchDataList(ViolateDetailParaModel _p);
	
	// 跟进信息更新
	public int updateFollowStatus(DtInvsViolationManageEntity w);
	
	/**
	 * 根据处方违规数据查询原处方信息
	 */
	public OutpatientModel serachOutpatient(String dviolationManageId);
	
	// 查询处方违规分类
	public List<IllegalTypeModel> searchIllegalTypePrescription(HpCommonParModel _p); 
	
	// 查询导出数据
	public List<String[]>  getExcelData(
            String invsInstitutionId,
            String fromDt,
            String toDt);
}
